package com.freshmarket.freshmarket.dao;

import com.freshmarket.freshmarket.entity.Manager;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.freshmarket.freshmarket.utils.Result;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Squirrel
 * @since 2020-09-04
 */
public interface ManagerMapper extends BaseMapper<Manager> {

    public int updateManagerLoginTime(@Param("managerName") String managerName,@Param("managerLastLogintime")String managerLastLogintime);

    //查询该用户是否存在
    public Manager selectByName(@Param("managerName") String managerName);
    //新增管理员
    int insertManager(@Param("managerName") String managerName,@Param("managerPassword")String managerPassword);
}
